<?php
//路由中间件在路由群组中有作用
Route::group(['namespace' => 'Admin','prefix' => 'admin','middleware' => 'admin.login'],function(){
	Route::get('index','IndexController@index');

	//用户相关路由
	Route::resource('user','UserController');

	//栏目相关路由
	Route::get('cat/del',"CatController@del");
	Route::resource('cat','CatController');
	//商品路由
	Route::resource('goods','GoodsController');
	

	//一下项目迁移
	//评价
	Route::get('assess/del','AssessController@del');
	Route::resource('assess','AssessController');
	//商家删除
	Route::get('shop/del','ShopController@del');
	//商家状态改变
	Route::get('shop/status','ShopController@status');
	//商家
	Route::resource('shop','ShopController');

});

